package com.zhou.JavaAndroidFirm.constract;

import com.jaydenxiao.androidfire.bean.VideoData;
import com.zhou.JavaAndroidFirm.base.BaseModel;
import com.zhou.JavaAndroidFirm.base.BasePresenter;

import java.util.List;

import rx.Observable;

/**
 * @author Administrator
 * @date 2018/7/18 0018
 * @des
 */
public interface VideoListContract {
    interface View extends BaseView {
        //返回获取的视频
        void returnVideosListData(List<VideoData> newsSummaries);
    }

    interface Model extends BaseModel {
        Observable<List<VideoData>> getVideosListData(String type, int startPage);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getVideosListData(String type, int startPage);
    }
}
